﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ProductoEdit.aspx.cs"
    Inherits="WebAppPlanProduccion.App.ProductoEdit" %>

<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        $(function () {
            // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
            $("#dialog:ui-dialog").dialog("destroy");

            $("#dialog-modal-procesando").dialog({
                height: 140,
                autoOpen: false,
                width: 'auto',
                modal: true
            });
        });      

    </script>
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Detalle de Producto
    </h2>
    <div class="editionContainerFilter">
        <p>
            <span class="title2">Producto:</span>
            <asp:TextBox ID="txtProductoIdExterno" runat="server" CssClass="inputs readonly"
                ReadOnly="true"></asp:TextBox>
            <asp:TextBox ID="txtProductoNombre" runat="server" CssClass="inputlong readonly" ReadOnly="true"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Color:</span>
            <asp:TextBox ID="txtColorIdExterno" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
            <asp:TextBox ID="txtColorNombreExterno" runat="server" CssClass="inputlong readonly"
                ReadOnly="true"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Temporada:</span>
            <asp:TextBox ID="txtTemporadaCodigoExterno" runat="server" CssClass="inputs readonly"
                ReadOnly="true"></asp:TextBox>
            <asp:TextBox ID="txtTemporadaNombre" runat="server" CssClass="inputlong readonly" ReadOnly="true"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Marca:</span>
            <asp:TextBox ID="txtMarcaIdExterno" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
            <asp:TextBox ID="txtMarcaNombreExterno" runat="server" CssClass="inputlong readonly"
                ReadOnly="true"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
         <p>
            <span class="title2">Rubro:</span>
            <asp:TextBox ID="txtRubroId" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
            <asp:TextBox ID="txtRubroNombre" runat="server" CssClass="inputlong readonly"
                ReadOnly="true"></asp:TextBox>
        </p>
        <div class="clear">
        </div>        
        <p>
            <span class="title2">Origen:</span>
            <asp:TextBox ID="txtOrigenIdExterno" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
            <asp:TextBox ID="txtOrigenNombreExterno" runat="server" CssClass="inputlong readonly"
                ReadOnly="true"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Linea:</span>
            <asp:TextBox ID="txtLineaIdExterno" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
            <asp:TextBox ID="txtLineaNombreExterno" runat="server" CssClass="inputlong readonly"
                ReadOnly="true"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Categor&iacute;a:</span>
            <asp:TextBox ID="txtFamiliaIdExterno" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
            <asp:TextBox ID="txtFamiliaNombreExterno" runat="server" CssClass="inputlong readonly"
                ReadOnly="true"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Sub Categor&iacute;a:</span>
            <asp:TextBox ID="txtSubFamiliaIdExterno" runat="server" CssClass="inputs readonly"
                ReadOnly="true"></asp:TextBox>
            <asp:TextBox ID="TextBox2" runat="server" CssClass="inputlong readonly" ReadOnly="true"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Calidad:</span>
            <asp:TextBox ID="txtCalidadId" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
            <asp:TextBox ID="txtCalidad" runat="server" CssClass="inputlong readonly" ReadOnly="true"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Grupo Talle:</span>
            <asp:TextBox ID="txtGrupoTalleIdExterno" runat="server" CssClass="inputs readonly" ReadOnly="true"></asp:TextBox>
            <asp:TextBox ID="txtGrupoTalleNombreExterno" runat="server" CssClass="inputlong readonly" ReadOnly="true"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">C&oacute;digo Orly:</span>
            <asp:TextBox ID="txtCodigoOrly" runat="server" CssClass="inputlong readonly"
                ReadOnly="true"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Producto Segunda:</span>
            <asp:TextBox ID="txtProductoIdExternoSegunda" runat="server" CssClass="inputs readonly"
                ReadOnly="true"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Fecha Sincronizacion:</span>
            <asp:TextBox ID="txtFechaSincronizacion" runat="server" CssClass="inputs readonly"
                ReadOnly="true"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
    </div>
    <br />
     <div class="buttons">
        <%--<asp:LinkButton ID="lnkGuardar" runat="server" CssClass="guardar" OnClick="lnkGuardar_Click">Guardar</asp:LinkButton>--%>
        <asp:LinkButton ID="lnkSincronizar" runat="server" ClientIDMode="Static" CssClass="agregarNuevo"  onclick="lnkSincronizar_Click" CausesValidation="false" OnClientClick="return showProcesando();" >Sincronizar</asp:LinkButton>  
        <asp:LinkButton ID="lnkCancelar" runat="server" ClientIDMode="Static" CssClass="agregarNuevo"  onclick="lnkCancelar_Click" CausesValidation="false" >Volver</asp:LinkButton>  
    </div>
     <div id="dialog-modal-procesando" title="Procesando" style="text-align: center;
        vertical-align: middle">
        <img alt="" src="/Images/roller_orange.gif" style="margin-top: 30px" />
    </div>
    <script type='text/javascript'>

        function showProcesando() {
            $("#dialog-modal-procesando").dialog("open");
            return true;
        }

        $(document).ready(function () {

            if (!window.AppCommonObj) {
                window.AppCommonObj = new AppCommon();
            }

            document.DirtyCheck = new DirtyCheck();
            document.DirtyCheck.loadControlState();

            AppCommonObj.ConfirmMovePage();  
        });

    </script>
</asp:Content>
